<extend name="Layout/index" />
<block name="breadcrumb-01">
	<li>
		<i class="icon-home home-icon"></i>
		<a href="#">首页</a>
	</li>
	<li class="active">用户管理</li>
</block>

<block name="breadcrumb-02">
	<h1>
		用户管理
		<small>
			<i class="icon-double-angle-right"></i>
			 修改用户
		</small>
	</h1>
</block>
<block name="main">

	<div class="row">
		<div class="col-md-12">
			<form action="<{:U('User/save')}>" method='post' class="form-horizontal" name="regForm" onsubmit="return checkForm()">

		<div class="form-group" style="">
			<label for="" class="col-sm-2 control-label">用户名：</label>
			<div class="col-sm-4">
				<input type="text" name="name" class="form-control" value="<{$vo.name}>">
			</div>
		</div>
		<div class="form-group" style="">
			<label for="" class="col-sm-2 control-label">密码：</label>
			<div class="col-sm-4">
				<input type="text" name="password" class="form-control">
			</div>
		</div>
		<div class="form-group">
			<label for="" class="col-sm-2 control-label">性  别：</label>
			<div class="col-sm-4">
				<input  type="radio" name="sex" value="0">女   
				<input  type="radio" name="sex" value="1">男   
				<input  type="radio" name="sex" value="2">保密
			</div>
		</div>
		<div class="form-group" style="">
			<label for="" class="col-sm-2 control-label">年龄：</label>
			<div class="col-sm-4">
				<input type="text" name="age" class="form-control" value="<{$vo.age}>">
			</div>
		</div>
		<div class="form-group" style="">
			<label for="" class="col-sm-2 control-label">手机号：</label>
			<div class="col-sm-4">
				<input type="text" name="phone" class="form-control" value="<{$vo.phone}>">
			</div>
		</div>
		<div class="form-group" style="">
			<label for="" class="col-sm-2 control-label">email：</label>
			<div class="col-sm-4">
				<input type="text" name="email" class="form-control" value="<{$vo.email}>">
			</div>
		</div>
		<div class="form-group" style="">
			<label for="" class="col-sm-2 control-label">QQ：</label>
			<div class="col-sm-4">
				<input type="text" name="qq" class="form-control" value="<{$vo.qq}>">
			</div>
		</div>
		<div class="form-group" style="">
			<label for="" class="col-sm-2 control-label">身份证号：</label>
			<div class="col-sm-4">
				<input type="text" name="idcard" class="form-control" value="<{$vo.idcard}>">
			</div>
		</div>
		<div class="form-group" style="">
			<label for="" class="col-sm-2 control-label">地址：</label>
			<div class="col-sm-4">
				<input type="text" name="address" class="form-control" value="<{$vo.address}>">
			</div>
		</div>
		<div class="form-group">
		    <div class="col-sm-offset-2 col-sm-4">
		      <input type="hidden" name="id" value="<{$vo.id}>">
		      <button type="submit" class="btn btn-default">修 改</button>
		    </div>
		</div>
		
	</form>
		</div>
	</div>
	<script>
		function checkForm(){
			var name=document.regForm.name.value;
			var password=document.regForm.password.value;
			var age=document.regForm.age.value;
			var phone=document.regForm.phone.value;
			var email=document.regForm.email.value;
			var qq=document.regForm.qq.value;
			var idcard=document.regForm.idcard.value;
			var address=document.regForm.address.value;
			if(name==""||password==""||age==""||phone==""||email==""||qq==""||idcard==""||address==""){
				alert('请正确修改数据');
				return false;
			}
			return true;
		}
	</script>
</block>